package com.rmt.www.daoImpl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.rmt.www.vo.TraceabilityV2;

public class TraceabilityV2RowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int ix) throws SQLException {
		if(rs==null)
			return null;
		TraceabilityV2 t= new TraceabilityV2(
				rs.getInt("id"),
				rs.getString("artifactfromtable"),
				rs.getInt("artifactfromid"),
				rs.getString("artifacttotable"),
				rs.getInt("artifacttoid"));
		return t;
	}

}
